﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class TenantContext
{

    // 租户ID  ,租户编码，租户名称 
    static AsyncLocal<Tenant?> _tenant = new AsyncLocal<Tenant?>();
    /// <summary>
    /// 租户ID  ,租户编码，租户名称 
    /// </summary>
    public static Tenant? Tenant
    {
        get => _tenant.Value;
        set => _tenant.Value = value;
    }

}

